

const $body = document.querySelector('body')
const $headerMenuBtn = document.querySelector('#headerMenuBtn')
$headerMenuBtn.addEventListener('click', () => {
    if ($body.classList.contains('nav-show')) {
        $body.classList.remove('nav-show')
    } else {
        $body.classList.add('nav-show')
    }
})

AOS.init({
    offset: 200,
    duration: 1000,
    delay: 100,
});

function showLoading(){
    if (!$body.classList.contains('loading-show')) {
        $body.classList.add('loading-show')
        setTimeout(() => {
            $body.classList.remove('loading-show')
        }, 1000);
    }
}
function hideLoading(){
    $body.classList.remove('loading-show')
}